﻿using System;
using System.Collections.Generic;

namespace Medianamik.UI.Web.Shop.Data
{
    public partial class ShoppingCartItem : Interfaces.IShoppingCartItem<Model>
    {
        private double _price;
        public double Price
        {
            get { return _price; }
            set { _price = value; }
        }

        public double SubTotal
        {
            get { return Price * Quantity.GetValueOrDefault(1); }
            set { throw new NotImplementedException(); }
        }

        private IList<Model> _models;
        public IList<Model> Models
        {
            get { return _models ?? (_models = new List<Model>()); }
        }
    }
}
